<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>l8w8jwt: l8w8jwt_encoding_params Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">l8w8jwt
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structl8w8jwt__encoding__params-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">l8w8jwt_encoding_params Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="encode_8h_source.html">encode.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for l8w8jwt_encoding_params:</div>
<div class="dyncontent">
<div class="center"><img src="structl8w8jwt__encoding__params__coll__graph.png" border="0" usemap="#al8w8jwt__encoding__params_coll__map" alt="Collaboration graph"/></div>
<map name="al8w8jwt__encoding__params_coll__map" id="al8w8jwt__encoding__params_coll__map">
<area shape="rect" title=" " alt="" coords="5,112,178,139"/>
<area shape="rect" href="structl8w8jwt__claim.html" title=" " alt="" coords="41,5,142,32"/>
<area shape="poly" title=" " alt="" coords="94,47,94,112,89,112,89,47"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a5bf39d6b8874a581a6787b9784403c44" id="r_a5bf39d6b8874a581a6787b9784403c44"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a5bf39d6b8874a581a6787b9784403c44">alg</a></td></tr>
<tr class="separator:a5bf39d6b8874a581a6787b9784403c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3e119df4134e8401a7a5f6cba382eb8" id="r_ac3e119df4134e8401a7a5f6cba382eb8"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#ac3e119df4134e8401a7a5f6cba382eb8">iss</a></td></tr>
<tr class="separator:ac3e119df4134e8401a7a5f6cba382eb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe0c785b58909faafaf04afba2c5ab11" id="r_abe0c785b58909faafaf04afba2c5ab11"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#abe0c785b58909faafaf04afba2c5ab11">iss_length</a></td></tr>
<tr class="separator:abe0c785b58909faafaf04afba2c5ab11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a376070b013b0157e49c9286e889fdf1a" id="r_a376070b013b0157e49c9286e889fdf1a"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a376070b013b0157e49c9286e889fdf1a">sub</a></td></tr>
<tr class="separator:a376070b013b0157e49c9286e889fdf1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac80100445af4476fd8a641d91e99cd9" id="r_aac80100445af4476fd8a641d91e99cd9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#aac80100445af4476fd8a641d91e99cd9">sub_length</a></td></tr>
<tr class="separator:aac80100445af4476fd8a641d91e99cd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7eddc5806fc35c5ec24a59e4442afdad" id="r_a7eddc5806fc35c5ec24a59e4442afdad"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a7eddc5806fc35c5ec24a59e4442afdad">aud</a></td></tr>
<tr class="separator:a7eddc5806fc35c5ec24a59e4442afdad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283a81f8fce1307597b53c8bbcfe4f05" id="r_a283a81f8fce1307597b53c8bbcfe4f05"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a283a81f8fce1307597b53c8bbcfe4f05">aud_length</a></td></tr>
<tr class="separator:a283a81f8fce1307597b53c8bbcfe4f05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1bf5088f5cdc36cc7d1e2fc95e73c24" id="r_ae1bf5088f5cdc36cc7d1e2fc95e73c24"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#ae1bf5088f5cdc36cc7d1e2fc95e73c24">jti</a></td></tr>
<tr class="separator:ae1bf5088f5cdc36cc7d1e2fc95e73c24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0338f8a3e6b0a267dfcae8e2081811ab" id="r_a0338f8a3e6b0a267dfcae8e2081811ab"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a0338f8a3e6b0a267dfcae8e2081811ab">jti_length</a></td></tr>
<tr class="separator:a0338f8a3e6b0a267dfcae8e2081811ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a122c70e016eee5f9939891ace9f757b2" id="r_a122c70e016eee5f9939891ace9f757b2"><td class="memItemLeft" align="right" valign="top">l8w8jwt_time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a122c70e016eee5f9939891ace9f757b2">exp</a></td></tr>
<tr class="separator:a122c70e016eee5f9939891ace9f757b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfb468a6d0d4a213913d861538b6472a" id="r_abfb468a6d0d4a213913d861538b6472a"><td class="memItemLeft" align="right" valign="top">l8w8jwt_time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#abfb468a6d0d4a213913d861538b6472a">nbf</a></td></tr>
<tr class="separator:abfb468a6d0d4a213913d861538b6472a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4a59d6619927a691f77a781cb191188" id="r_ae4a59d6619927a691f77a781cb191188"><td class="memItemLeft" align="right" valign="top">l8w8jwt_time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#ae4a59d6619927a691f77a781cb191188">iat</a></td></tr>
<tr class="separator:ae4a59d6619927a691f77a781cb191188"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88974eca176b4327ee4eb28ba12c4176" id="r_a88974eca176b4327ee4eb28ba12c4176"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structl8w8jwt__claim.html">l8w8jwt_claim</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a88974eca176b4327ee4eb28ba12c4176">additional_header_claims</a></td></tr>
<tr class="separator:a88974eca176b4327ee4eb28ba12c4176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d82af3d398472eef5de3b4534927995" id="r_a7d82af3d398472eef5de3b4534927995"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a7d82af3d398472eef5de3b4534927995">additional_header_claims_count</a></td></tr>
<tr class="separator:a7d82af3d398472eef5de3b4534927995"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada84ad38961414ec25101cd22fba5240" id="r_ada84ad38961414ec25101cd22fba5240"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structl8w8jwt__claim.html">l8w8jwt_claim</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#ada84ad38961414ec25101cd22fba5240">additional_payload_claims</a></td></tr>
<tr class="separator:ada84ad38961414ec25101cd22fba5240"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15fdfb0592f3d175bfec2786362a015b" id="r_a15fdfb0592f3d175bfec2786362a015b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a15fdfb0592f3d175bfec2786362a015b">additional_payload_claims_count</a></td></tr>
<tr class="separator:a15fdfb0592f3d175bfec2786362a015b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34152cd49b4ea1bd906672b8167556d8" id="r_a34152cd49b4ea1bd906672b8167556d8"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a34152cd49b4ea1bd906672b8167556d8">secret_key</a></td></tr>
<tr class="separator:a34152cd49b4ea1bd906672b8167556d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e20b9285d52accb63ac5fc1dc924f7" id="r_a76e20b9285d52accb63ac5fc1dc924f7"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a76e20b9285d52accb63ac5fc1dc924f7">secret_key_length</a></td></tr>
<tr class="separator:a76e20b9285d52accb63ac5fc1dc924f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa64eeff0b890d1fa37e7c65e8e78429c" id="r_aa64eeff0b890d1fa37e7c65e8e78429c"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#aa64eeff0b890d1fa37e7c65e8e78429c">secret_key_pw</a></td></tr>
<tr class="separator:aa64eeff0b890d1fa37e7c65e8e78429c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6505bb6a25569abb23edac378892dbdb" id="r_a6505bb6a25569abb23edac378892dbdb"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a6505bb6a25569abb23edac378892dbdb">secret_key_pw_length</a></td></tr>
<tr class="separator:a6505bb6a25569abb23edac378892dbdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff53956be385bd146899b80c44ae9484" id="r_aff53956be385bd146899b80c44ae9484"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#aff53956be385bd146899b80c44ae9484">out</a></td></tr>
<tr class="separator:aff53956be385bd146899b80c44ae9484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06c545ea2dd26dbcd3a8a7182c85b745" id="r_a06c545ea2dd26dbcd3a8a7182c85b745"><td class="memItemLeft" align="right" valign="top">size_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structl8w8jwt__encoding__params.html#a06c545ea2dd26dbcd3a8a7182c85b745">out_length</a></td></tr>
<tr class="separator:a06c545ea2dd26dbcd3a8a7182c85b745"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Struct containing the parameters to use for creating a JWT with l8w8jwt. </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a88974eca176b4327ee4eb28ba12c4176" name="a88974eca176b4327ee4eb28ba12c4176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88974eca176b4327ee4eb28ba12c4176">&#9670;&#160;</a></span>additional_header_claims</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structl8w8jwt__claim.html">l8w8jwt_claim</a>* l8w8jwt_encoding_params::additional_header_claims</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] Array of additional claims to include in the JWT's header like for example "kid" or "cty"; pass <code>NULL</code> if you don't wish to add any! </p>
<p>Avoid header claims such as <code>typ</code> and <code>alg</code>, since those are written by the encoding function itself. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.7">https://tools.ietf.org/html/rfc7519#section-4.1.7</a> </dd></dl>

</div>
</div>
<a id="a7d82af3d398472eef5de3b4534927995" name="a7d82af3d398472eef5de3b4534927995"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d82af3d398472eef5de3b4534927995">&#9670;&#160;</a></span>additional_header_claims_count</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::additional_header_claims_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The additional_header_claims array size; pass <code>0</code> if you don't wish to include any custom claims! </p>

</div>
</div>
<a id="ada84ad38961414ec25101cd22fba5240" name="ada84ad38961414ec25101cd22fba5240"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada84ad38961414ec25101cd22fba5240">&#9670;&#160;</a></span>additional_payload_claims</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structl8w8jwt__claim.html">l8w8jwt_claim</a>* l8w8jwt_encoding_params::additional_payload_claims</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] Array of additional claims to include in the JWT's payload; pass <code>NULL</code> if you don't wish to add any! </p>
<p>Registered claim names such as "iss", "exp", etc... have their own dedicated field within this struct: do not include those in this array to prevent uncomfortable duplicates! </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4">https://tools.ietf.org/html/rfc7519#section-4</a> </dd></dl>

</div>
</div>
<a id="a15fdfb0592f3d175bfec2786362a015b" name="a15fdfb0592f3d175bfec2786362a015b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15fdfb0592f3d175bfec2786362a015b">&#9670;&#160;</a></span>additional_payload_claims_count</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::additional_payload_claims_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The additional_payload_claims array size; pass <code>0</code> if you don't wish to include any custom claims! </p>

</div>
</div>
<a id="a5bf39d6b8874a581a6787b9784403c44" name="a5bf39d6b8874a581a6787b9784403c44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bf39d6b8874a581a6787b9784403c44">&#9670;&#160;</a></span>alg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int l8w8jwt_encoding_params::alg</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The signature algorithm ID. </p>
<p>[0;2] = HS256/384/512 | [3;5] = RS256/384/512 | [6;8] = PS256/384/512 | [9;11] = ES256/384/512 </p>

</div>
</div>
<a id="a7eddc5806fc35c5ec24a59e4442afdad" name="a7eddc5806fc35c5ec24a59e4442afdad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7eddc5806fc35c5ec24a59e4442afdad">&#9670;&#160;</a></span>aud</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_encoding_params::aud</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The audience claim (who is the JWT intended for? Who is the intended JWT's recipient?). Set this to <code>NULL</code> if you don't wish to add this claim to the token. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.3">https://tools.ietf.org/html/rfc7519#section-4.1.3</a> </dd></dl>

</div>
</div>
<a id="a283a81f8fce1307597b53c8bbcfe4f05" name="a283a81f8fce1307597b53c8bbcfe4f05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a283a81f8fce1307597b53c8bbcfe4f05">&#9670;&#160;</a></span>aud_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::aud_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>aud claim string length. </p>

</div>
</div>
<a id="a122c70e016eee5f9939891ace9f757b2" name="a122c70e016eee5f9939891ace9f757b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a122c70e016eee5f9939891ace9f757b2">&#9670;&#160;</a></span>exp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">l8w8jwt_time_t l8w8jwt_encoding_params::exp</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Expiration time claim; specifies when this token should stop being valid (in seconds since Unix epoch). </p>
<p>If you want to omit this, set this to <code>0</code>, but do NOT FORGET to set it to something, otherwise it will be set to whatever random value was in the memory where this variable resides. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.4">https://tools.ietf.org/html/rfc7519#section-4.1.4</a> </dd></dl>

</div>
</div>
<a id="ae4a59d6619927a691f77a781cb191188" name="ae4a59d6619927a691f77a781cb191188"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4a59d6619927a691f77a781cb191188">&#9670;&#160;</a></span>iat</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">l8w8jwt_time_t l8w8jwt_encoding_params::iat</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>"Issued at" timestamp claim; specifies when this token was emitted (in seconds since Unix epoch). </p>
<p>If you want to omit this, set this to <code>0</code>, but do NOT FORGET to set it to something, otherwise it will be set to whatever random value was in the memory where this variable resides. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.6">https://tools.ietf.org/html/rfc7519#section-4.1.6</a> </dd></dl>

</div>
</div>
<a id="ac3e119df4134e8401a7a5f6cba382eb8" name="ac3e119df4134e8401a7a5f6cba382eb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3e119df4134e8401a7a5f6cba382eb8">&#9670;&#160;</a></span>iss</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_encoding_params::iss</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The issuer claim (who issued the JWT?). Can be omitted by setting this to <code>NULL</code>. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.1">https://tools.ietf.org/html/rfc7519#section-4.1.1</a> </dd></dl>

</div>
</div>
<a id="abe0c785b58909faafaf04afba2c5ab11" name="abe0c785b58909faafaf04afba2c5ab11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe0c785b58909faafaf04afba2c5ab11">&#9670;&#160;</a></span>iss_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::iss_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>iss claim string length. </p>

</div>
</div>
<a id="ae1bf5088f5cdc36cc7d1e2fc95e73c24" name="ae1bf5088f5cdc36cc7d1e2fc95e73c24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1bf5088f5cdc36cc7d1e2fc95e73c24">&#9670;&#160;</a></span>jti</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_encoding_params::jti</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The JWT ID. Provides a unique identifier for the token. Can be omitted by setting this to <code>NULL</code>. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.7">https://tools.ietf.org/html/rfc7519#section-4.1.7</a> </dd></dl>

</div>
</div>
<a id="a0338f8a3e6b0a267dfcae8e2081811ab" name="a0338f8a3e6b0a267dfcae8e2081811ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0338f8a3e6b0a267dfcae8e2081811ab">&#9670;&#160;</a></span>jti_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::jti_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>jti claim string length. </p>

</div>
</div>
<a id="abfb468a6d0d4a213913d861538b6472a" name="abfb468a6d0d4a213913d861538b6472a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfb468a6d0d4a213913d861538b6472a">&#9670;&#160;</a></span>nbf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">l8w8jwt_time_t l8w8jwt_encoding_params::nbf</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>"Not before" time claim; specifies when this token should start being valid (in seconds since Unix epoch). </p>
<p>If you want to omit this, set this to <code>0</code>, but do NOT FORGET to set it to something, otherwise it will be set to whatever random value was in the memory where this variable resides. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.5">https://tools.ietf.org/html/rfc7519#section-4.1.5</a> </dd></dl>

</div>
</div>
<a id="aff53956be385bd146899b80c44ae9484" name="aff53956be385bd146899b80c44ae9484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff53956be385bd146899b80c44ae9484">&#9670;&#160;</a></span>out</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char** l8w8jwt_encoding_params::out</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Where the encoded token should be written into (will be malloc'ed, so make sure to <code><a class="el" href="version_8h.html#a2ae563b3a6a9cd00b7f27851b0e6a10a">l8w8jwt_free()</a></code> this as soon as you're done using it!). </p>

</div>
</div>
<a id="a06c545ea2dd26dbcd3a8a7182c85b745" name="a06c545ea2dd26dbcd3a8a7182c85b745"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06c545ea2dd26dbcd3a8a7182c85b745">&#9670;&#160;</a></span>out_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t* l8w8jwt_encoding_params::out_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Where the output token string length should be written into. </p>

</div>
</div>
<a id="a34152cd49b4ea1bd906672b8167556d8" name="a34152cd49b4ea1bd906672b8167556d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34152cd49b4ea1bd906672b8167556d8">&#9670;&#160;</a></span>secret_key</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char* l8w8jwt_encoding_params::secret_key</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The secret key to use for signing the token (e.g. if you chose HS256 as algorithm, this will be the HMAC secret; for RS512 this will be the private PEM-formatted RSA key string, and so on...). </p>

</div>
</div>
<a id="a76e20b9285d52accb63ac5fc1dc924f7" name="a76e20b9285d52accb63ac5fc1dc924f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76e20b9285d52accb63ac5fc1dc924f7">&#9670;&#160;</a></span>secret_key_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::secret_key_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Length of the secret_key </p>

</div>
</div>
<a id="aa64eeff0b890d1fa37e7c65e8e78429c" name="aa64eeff0b890d1fa37e7c65e8e78429c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa64eeff0b890d1fa37e7c65e8e78429c">&#9670;&#160;</a></span>secret_key_pw</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char* l8w8jwt_encoding_params::secret_key_pw</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>If the secret key requires a password for usage, please assign it to this field. </p>
<p>You can only omit this when using JWT algorithms "HS256", "HS384" or "HS512" (it's ignored in that case actually). </p>
<p>Every other algorithm requires you to at least set this to <code>NULL</code> if the <code><a class="el" href="structl8w8jwt__encoding__params.html#a34152cd49b4ea1bd906672b8167556d8">secret_key</a></code> isn't password-protected. </p>

</div>
</div>
<a id="a6505bb6a25569abb23edac378892dbdb" name="a6505bb6a25569abb23edac378892dbdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6505bb6a25569abb23edac378892dbdb">&#9670;&#160;</a></span>secret_key_pw_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::secret_key_pw_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The secret key's password length (if there is any). If there's none, set this to zero! </p>

</div>
</div>
<a id="a376070b013b0157e49c9286e889fdf1a" name="a376070b013b0157e49c9286e889fdf1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a376070b013b0157e49c9286e889fdf1a">&#9670;&#160;</a></span>sub</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_encoding_params::sub</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>[OPTIONAL] The subject claim (who is the JWT about?). Set to <code>NULL</code> if you don't want it in your token. </p><dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7519#section-4.1.2">https://tools.ietf.org/html/rfc7519#section-4.1.2</a> </dd></dl>

</div>
</div>
<a id="aac80100445af4476fd8a641d91e99cd9" name="aac80100445af4476fd8a641d91e99cd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac80100445af4476fd8a641d91e99cd9">&#9670;&#160;</a></span>sub_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_encoding_params::sub_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>sub claim string length. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/l8w8jwt/<a class="el" href="encode_8h_source.html">encode.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
